
 
 F u n c t i o n :   g e t H a s h (   s t r i n g O p t i o n a l U R L   ) 
 
 
 
 D e s c r i p t i o n :   R e t u r n s   t h e   h a s h   t a g   f o r   a   U R L . 
 
 
 
 R e t u r n s :   S t r i n g . 
 
 
 
 N o t e :   I f   s t r i n g O p t i o n a l U R L   i s   u n d e f i n e d ,   t h e   c u r r e n t   b r o w s e r   U R L   i n   t h e   a d d r e s s   b a r   w i l l   b e   u s e d   i n s t e a d . 
 
 
 
 E x a m p l e : 
 
 
 
 / /   G e t   t h e   h a s h   t a g   o n   t h e   c u r r e n t   a d d r e s s   b a r   U R L . 
 
 
 
 v a r   h a s h T a g   =   $ A . g e t H a s h ( ) ; 
 
 
 
 / /   O r   g e t   t h e   h a s h   t a g   o n   t h e   s p e c i f i e d   U R L . 
 
 
 
 v a r   h a s h T a g   =   $ A . g e t H a s h ( " h t t p s : / / w h a t s o c k . c o m / # A u t o m a t i o n T a b " ) ;   / /   R e t u r n s :   " A u t o m a t i o n T a b " 
 
 